import $request from "./request.js";
import axios from 'axios';
import {
	resolve
} from "core-js/fn/promise";
// import $aes from '../AES.js'

import pages from './pages/pages.js'

export default {
	...pages,

	/**
	 * 注册
	 */
	loginReg(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/login/reg',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	loginLogin(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/login/login',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	/**
	 * 获取图片验证码
	 */
	loginVerify(data = {}, ret = () => {}){
		$request.request({
			url: '/api/login/verify?v='+Math.random(),
			method: 'get',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	/**
	 * 获取用户资料
	 */
	userGetUserInfo(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/user/getUserInfo',
			method: 'get',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	/**
	 * 获取轮播
	 */
	bannerGetItemList(data = {}, ret = () => {}) {
		$request.request({
			url: '/baseapi/banner/getItemList',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	/**
	 * 获取文章
	 */
	ArticleGetList(data = {}, ret = () => {}) {
		$request.request({
			url: '/baseapi/Article/getList',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	/**
	 * 获取文章
	 */
	ArticleGetDetail(data = {}, ret = () => {}) {
		$request.request({
			url: '/baseapi/Article/getDetail',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	/**
	 * 获取配置
	 */
	ConfigGetConfig(data = {}, ret = () => {}) {
		$request.request({
			url: '/baseapi/Config/getConfig',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	
	/**
	 * 获取首页游戏列表
	 */
	getIndexGames(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/public/getIndexGames',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	/**
	 * 获取游戏链接
	 */
	gameOpenGame(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/game/openGame',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	/**
	 * 获取钱包全部余额
	 */
	userBalanceAll(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/user/balanceAll',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	/**
	 * 一键回收
	 */
	userTransferAll(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/user/transferAll',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	/**
	 * 获取全部充值渠道
	 */
	paymentAll(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/payment/all',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	/**
	 * 支付调用
	 */
	paymentPay(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/payment/pay',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	/**
	 * 获取我的充值记录
	 */
	rechargeRecord(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/user/rechargeRecord',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	/**
	 * 设置提现密码
	 */
	setPayword(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/user/setPayword',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	/**
	 * 反水中心
	 */
	fsCenter(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/user/fsCenter',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	/**
	 * 反水等级
	 */
	fsLevel(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/user/fsLevel',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	
	/**
	 * 反水领取记录
	 */
	fsLog(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/user/fsLog',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	/**
	 * 一键领取反水
	 */
	getFs(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/user/getFs',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	/**
	 * 修改用户信息
	 */
	updateInfo(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/user/updateInfo',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	/**
	 * 校验支付密码
	 */
	verifyPayPass(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/user/verifyPayPass',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	/**
	 * 发送短信
	 */
	sendSmsCode(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/user/sendSmsCode',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	/**
	 * 绑定手机号
	 */
	bandMobile(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/user/bandMobile',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	/**
	 * 修改登陆密码
	 */
	changeLoginPass(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/user/changeLoginPass',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	
	/**
	 * 修改提现密码
	 */
	changePayPass(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/user/changePayPass',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	/**
	 * 资金类型
	 */
	balanceType(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/user/balanceType',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	/**
	 * 获取资金列表
	 */
	getBalance(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/user/getBalance',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	/**
	 * 获取全部游戏平台
	 */
	getPt(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/user/getPt',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	/**
	 * 获取游戏记录
	 */
	gameRecord(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/user/gameRecord',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
		/**
	 * 获取pg游戏记录
	 */
		pgRecord(data = {}, ret = () => {}) {
			$request.request({
				url: '/api/game/pg_record',
				method: 'get',
				data: data
			}).then(res => {
				ret(res)
			})
		},
	/**
	 * 提现资料
	 */
	tixianInfo(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/user/tixianInfo',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	/**
	 * 银行列表
	 */
	bankList(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/user/bankList',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	/**
	 * 添加银行卡
	 */
	bankSave(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/user/bankSave',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	/**
	 * 我的卡
	 */
	bankUserList(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/user/bankUserList',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	/**
	 * 发起提现
	 */
	tixian(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/user/tixian',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	
	/**
	 * 首页弹窗列表
	 */
	newTask(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/User/newTask',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	/**
	 * 棋牌列表
	 */
	gameList(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/Public/gameList',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	shareInfo(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/User/shareInfo',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	getQmMoney(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/User/getQmMoney',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	Loginforget(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/Login/forget',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	UsermyTeam(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/User/myTeam',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
    vipList(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/User/vipList',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	vipGetMoney(data = {}, ret = () => {}){
		$request.request({
			url: '/api/User/vipGetMoney',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	activity_cate(data = {}, ret = () => {}){
		$request.request({
			url: '/api/Public/activity_cate',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	activity(data = {}, ret = () => {}){
		$request.request({
			url: '/api/Public/activity',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	activityInfo(data = {}, ret = () => {}){
		$request.request({
			url: '/api/Public/activityInfo',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	push_activity(data = {}, ret = () => {}){
		$request.request({
			url: '/api/User/push_activity',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	activityApplyList(data = {}, ret = () => {}){
		$request.request({
			url: '/api/User/activityApplyList',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	
	dailiTran(data = {}, ret = () => {}){
		$request.request({
			url: '/api/User/daili_tran',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	vipMoneyLog(data = {}, ret = () => {}){
		$request.request({
			url: '/api/User/vipMoneyLog',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	yebInfo(data = {}, ret = () => {}){
		$request.request({
			url: '/api/User/yebInfo',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	yeb_task(data = {}, ret = () => {}){
		$request.request({
			url: '/api/User/yeb_task',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	yeb_tran(data = {}, ret = () => {}){
		$request.request({
			url: '/api/User/yeb_tran',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	yeb_log(data = {}, ret = () => {}){
		$request.request({
			url: '/api/User/yeb_log',
			method: 'post',
			data: data
		}).then(res => {
			ret(res)
		})
	},
	/**
	 * 图片上传
	 */
	userUpload(data = {}, ret = () => {}) {
		$request.uploadFile(data).then(res => {
			ret(res)
		})
	},
}
